﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucNewsDetail.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.HaLongHotel.NewsDetail" %>
<style>
    .linkTestimonial
    {
        color: #000000;
        font-size: 13px;
        text-decoration: none;
    }
    .linkTestimonial:hover
    {
        text-decoration: underline;
    }
</style>
<asp:DataList ID="DataList1" runat="server" Width="100%" DataSourceID="ObjectDataSource1">
    <ItemTemplate>
        <div class="content-palce">
            <div class="content-palce-title">
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/NewsDetail.aspx?id="+ Eval("Id") %>'><%# Eval("TieuDe") %></asp:HyperLink>
            </div>
            <div class="content-place-body">
                <asp:Label ID="Label2" runat="server" Style="color: #999999; font-style: italic;
                    font-size: 11px;" Text='<%# Eval("NgayDang") %>'></asp:Label><br />
                <asp:Label ID="lblNote" runat="server" Text='<%# Eval("GhiChu") %>' Font-Size="12px"
                    Font-Bold="True"></asp:Label>
                <br />
                <b>more :</b><br />
                <asp:Label ID="Label4" runat="server" Text='<%# Eval("NoiDung") %>'></asp:Label>
                <asp:DataList ID="DataList2" runat="server" DataSourceID="ObjectDataSource2" Width="100%">
                    <ItemTemplate>
                        <div class="link-item-container">
                            <img alt="tab" class="tab" src="../../Styles/Images/tab_right.png" />
                            <asp:HyperLink ID="HyperLink2" CssClass="linkTestimonial" runat="server" 
                                NavigateUrl='<%# "~/HalongHotelDetail.aspx?id="+ Eval("Id") %>'><%# Eval("TieuDe") %></asp:HyperLink>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetByType"
                    TypeName="IOBusiness.clsBSNews">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="HiddenField1" Name="typeid" PropertyName="Value"
                            Type="Int32" />
                        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("TypeId") %>' />
            </div>
        </div>
    </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetById"
    TypeName="IOBusiness.clsBSNews">
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<br />
